''' Mission 12 - Night Light Objective 5 in CodeSpace ''' from codex import * ROOM = 15000 while True: value = light.read() if value < ROOM: scaled = (1 - value/ROOM) * 20 level = int(scaled) pixels.fill(WHITE, brightness = level) else: pixels.fill(BLACK)